Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix blank error message when allow_blank is false and value is blank #935

Closed
wants to merge 1 commit into from

Conversation

pekopekopekopayo
Copy link
Contributor

No description provided.

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good to have tests for this.

error = ParamError.new(error) unless error.is_a? StandardError
raise error
end
return true if !validator.valid?(value)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be:

Suggested change
return true if !validator.valid?(value)
return true if validator.valid?(value)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes it is my miss but test code it bothers me ㅠ_ㅠ

@ekohl ekohl linked an issue Jun 4, 2024 that may be closed by this pull request
@pekopekopekopayo pekopekopekopayo changed the title fix blank error message when allow_blank is false and value is balnk fix blank error message when allow_blank is false and value is blank Jun 4, 2024
@pekopekopekopayo
Copy link
Contributor Author

sorry i will this pr
becuse this pr is duplicate ㅠ_ㅠ sorry....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Blank validator error message is wrong
3 participants